#ifndef BRICK_H
#define BRICK_H

#include "math.h"
#include "Sprite.h"

using namespace shapes;

namespace sprites
{
	class Brick : public Sprite
	{
	public:
		//constructors
		Brick(Vector3D _pos, MatterType _type, float _boundRadius);
		Brick(Vector3D _pos, MatterType _type, float _boundRadius, float scale);
	    ~Brick();
		void build();

		//collision testing
		virtual BindingSphere getBindingSphere();
		virtual std::vector<BindingSphere> getBindingShapes();
		virtual void handleCollision(MatterType type, BindingSphere sphere);

		//when a brick is destroyed by a bullet.
		void destroyed();
	};
}


#endif